package com.yfp.device.mapper;

import com.yfp.device.domain.MachineRoad;
import com.yfp.device.domain.MachineRoadExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface MachineRoadMapper {
    long countByExample(MachineRoadExample example);

    int deleteByExample(MachineRoadExample example);

    int insert(MachineRoad record);

    int insertSelective(MachineRoad record);

    List<MachineRoad> selectByExample(MachineRoadExample example);

    int updateByExampleSelective(@Param("record") MachineRoad record, @Param("example") MachineRoadExample example);

    int updateByExample(@Param("record") MachineRoad record, @Param("example") MachineRoadExample example);

    /**
     * 根据机器编号删除货道号
     *
     * @param machineSn 机器编号
     */
    void deleteByMachineId(@Param("machineSn") String machineSn);

    /**
     * 更新机器货道
     *
     * @param roads 货道信息
     */
    void updateMachineRoads(List<MachineRoad> roads);
}